import { get } from '@/http/axios'
export default {
    namespaced: true,
    state: {
        //订单数组
        OrderData: [],
    },
    mutations: {
        SET_ORDERDATA(state, payload) {
            state.OrderData = payload
        }
    },
    actions: {
        //获取登陆者的订单数据
        async getAllOrderData({ commit }, payload) {
            let res = await get('/order/pageQuery', payload)
            commit('SET_ORDERDATA', res.data.data.list)
        },

    }
}